package com.training1.core.modules.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.training1.core.common.service.CrudService;
import com.training1.core.entity.NoticeMsgEntity;
import com.training1.core.modules.dao.NoticeMsgDao;
@Service
@Transactional
public class NoticeMsgService extends CrudService<NoticeMsgDao,NoticeMsgEntity>{
	@Resource
	private NoticeMsgDao noticeMsg;
	
	public NoticeMsgEntity findOne(Integer id){
		return noticeMsg.findOne(id);
	}
	
	public List<NoticeMsgEntity> getMessageList(String cellphone){
		return noticeMsg.getMessageList(cellphone);
	}
}
